package com.xmkj.bearbiz.jifen;

import android.content.Context;

import com.common.Entity.AllRecordEntity;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearbiz.R;

import java.util.List;

public class AllRecordAdapter extends CommonAdapter<AllRecordEntity.ListsBean> {
    public AllRecordAdapter(Context context, List<AllRecordEntity.ListsBean> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, AllRecordEntity.ListsBean item, int position) {
        holder.setImageAvatar(R.id.iv_img,item.face);
        holder.setText(R.id.tv_name,item.nickname);
        holder.setText(R.id.tv_address,item.user_address);
        holder.setText(R.id.tv_price,item.add_money);
    }

    @Override
    protected int getItemViewLayoutId(int position, AllRecordEntity.ListsBean item) {
        return R.layout.item_chujia_records;
    }
}
